package cn.iocoder.yudao.module.system.service.ids;

import cn.iocoder.yudao.module.system.controller.admin.auth.vo.AuthLoginRespVO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface IdsService {
    //根据ids获取用户信息登录生产系统
    AuthLoginRespVO loginIDS(HttpServletRequest req, HttpServletResponse res, String trsidsssosessionid);

    String loginRedirect(HttpServletRequest request);

    //String checkIdsLoginRedirect(HttpServletRequest req);

    Boolean checkIDSLogin(HttpServletRequest req, String trsidsssosessionid);

    String getTenantName(HttpServletRequest req, String trsidsssosessionid);

    Boolean idsLogout(String trsidsssosessionid);

    String addUser(HttpServletRequest req, HttpServletResponse res);

    //打开用户访问权限
    String openUser(HttpServletRequest req, HttpServletResponse res);

    //修改用户信息
    String updateUser(HttpServletRequest req, HttpServletResponse res);

    //关闭用户访问权限
    String closeUser(HttpServletRequest req, HttpServletResponse res);

    //删除用户信息
    String deleteUser(HttpServletRequest req, HttpServletResponse res);

    //将用户分配到某部门
    String disOrgan(HttpServletRequest req, HttpServletResponse res);

    //将用户移除某部门
    String removeOrgan(HttpServletRequest req, HttpServletResponse res);


    //新增部门
    String addOrgan(HttpServletRequest req, HttpServletResponse res);

    //删除部门
    String deleteOrgan(HttpServletRequest req, HttpServletResponse res);

    //修改部门信息
    String updateOrgan(HttpServletRequest req, HttpServletResponse res);
}
